package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjWorkSpareReturn;
import com.zb.vo.WorkSpareReturnSelectVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 工单备件旧件退回表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-10-30
 */
@Repository
public interface ZjWorkSpareReturnMapper extends BaseMapper<ZjWorkSpareReturn> {

    /**
     * 获取工单备件旧件退回列表
     * @param custAccId 商家ID
     * @param selectVo 搜索条件
     * @return
     */
    List<ZjWorkSpareReturn> getList(@Param("custAccId") Long custAccId, @Param("selectVo") WorkSpareReturnSelectVo selectVo);

    /**
     * 获取工单备件旧件退回列表总记录数
     * @param custAccId 商家ID
     * @param selectVo 搜索条件
     * @return
     */
    long getListCount(@Param("custAccId") Long custAccId, @Param("selectVo") WorkSpareReturnSelectVo selectVo);
}
